package com.chen.service.impl;

import com.chen.mapper.BusinessMapper;
import com.chen.pojo.entry.Business;
import com.chen.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author chen
 * @version 1.0
 * @create_date 2025/8/17
 * 商圈管理业务实现类
 */
@Service
@Transactional
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    private BusinessMapper businessMapper;

    /**
     * 获取商圈列表
     *
     * @return 商圈数据
     */
    @Override
    public List<Business> getBusinessTypes() {
        // 查询全部
        return businessMapper.selectList(null);
    }
}
